# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : complains_apis.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2023/8/19 15:37
# @Copyright: 北京码同学
from api.base_api import BaseManagerApi


class ToappealComplainsApi(BaseManagerApi):
    """
    审核并交由商家申诉
    """
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/admin/trade/order-complains/{id}/to-appeal'
        self.method = 'put'

class CompleteComplainsApi(BaseManagerApi):
    """
    仲裁结果
    """
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/admin/trade/order-complains/{id}/complete'
        self.method = 'put'
        self.data = {
            "arbitration_result":"没啥意见，你们看着办"
        }